/*
 * @Author: Yzq
 * @Date: 2021-04-01 17:36:26
 * @LastEditTime: 2021-04-06 09:44:01
 * @LastEditors: Yzq
 */

import React from 'react';
import {createBottomTabNavigator} from '@react-navigation/bottom-tabs';

import Index from './index';
import User from './user';
import I18n from './res';

const Tab = createBottomTabNavigator();

export const Screens = {
  Index: {component: Index},
  User: {component: User},
};

class TabStack extends React.Component {
  constructor(props: any) {
    super(props);
  }

  render() {
    return (
      <Tab.Navigator>
        <Tab.Screen name={I18n.t('tab.index')} component={Index} />
        <Tab.Screen name={I18n.t('tab.user')} component={User} />
      </Tab.Navigator>
    );
  }
}

export default TabStack;
